package com.hs.dao;

import com.hs.pojo.Teacher;

import java.util.List;

public interface TeacherDao {
    //查询和分页
    List<Teacher> selectTeacher(int startIndex,int pageSize);
    int SelectCount();
    //添加信息
    int insertTeacher(Teacher teacher);
    //修改  -- 先根据id查询数据
    Teacher selectTeacherById(int id);
    int updateTeacher(Teacher teacher);
    //删除
    int deleteTeacher(int id);

}
